package com.cloud.lan.service.aliyun;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import lombok.Data;

@Data
@Configuration
@ConfigurationProperties(prefix = "lan.aliyun")
public class AliyunConfig {

    String accessKeyId;
    String accessKeySecret;
    Oss oss;
    Sms sms;

    @Data
    public static class Oss {
        String endpoint;
        String bucketName;
        String cdnDomain;
    }

    @Data
    public static class Sms {
        String signName;
        String endpoint;
        String loginTemplateCode;
    }

}
